package com.joinway.framework.core.java;

import java.util.Arrays;

public class JavaBean {
	
	private String name = "lee2";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
		
	@Deprecated
	public Object getProperty(String property){
		return "hello " + name + " ! - getProperty";
	}
	
	public static void printFields(){
		Arrays.asList(JavaBean.class.getDeclaredFields()).stream().forEach(f -> System.out.println(f.getName() + " - " + f.getType().getName()));
	}
}
